import request from '@/utils/request'

// 查询奖品抽奖列表
export function listPrizeluck(query) {
  return request({
    url: '/system/prizeluck/list',
    method: 'get',
    params: query
  })
}

// 查询奖品抽奖详细
export function getPrizeluck(id) {
  return request({
    url: '/system/prizeluck/' + id,
    method: 'get'
  })
}

// 新增奖品抽奖
export function addPrizeluck(data) {
  return request({
    url: '/system/prizeluck',
    method: 'post',
    data: data
  })
}

// 修改奖品抽奖
export function updatePrizeluck(data) {
  return request({
    url: '/system/prizeluck',
    method: 'put',
    data: data
  })
}

// 删除奖品抽奖
export function delPrizeluck(id) {
  return request({
    url: '/system/prizeluck/' + id,
    method: 'delete'
  })
}

// 导出奖品抽奖
export function exportPrizeluck(query) {
  return request({
    url: '/system/prizeluck/export',
    method: 'get',
    params: query
  })
}

// 查询奖品列表
export function listPrizeinfo(query) {
  return request({
    url: '/system/prizeinfo/list',
    method: 'get',
    params: query
  })
}